package indi.kider.server.woniubus.service;


import indi.kider.common.model.apabus.*;
import indi.kider.common.model.employee.Employee;
import pers.vankid.common.model.base.CommonResponse;
import pers.vankid.common.utils.page.PageRequest;
import pers.vankid.common.utils.page.PageResponse;

import java.util.List;

/**
 *  服务接口
 */
public interface BusService {

    /**
     * 更新warningState状态
     * @return
     * @throws Exception
     */
    CommonResponse updateBusWarningState()throws Exception;

    /**
     * 根据房间获取租客信息
     * @param houseId
     * @return
     * @throws Exception
     */
    List<Rent> getTenantListByHouseId(Long houseId)throws Exception;

    /**
     * 服务保存
     * @param serviceDelivery
     * @return
     */
    CommonResponse serviceDelivery(ServiceDelivery serviceDelivery,Employee employee)throws Exception;
    /**
     * 获取服务列表
     *
     * @param request
     * @return
     */
    PageResponse<List<Bus>> queryBusList(PageRequest<Bus> request);


    /**
     * 派工
     *
     * @param dispatch
     * @return
     */
    CommonResponse dispatch(Dispatch dispatch)throws Exception;
    /**
     * 完成
     * @param completeBean
     * @return
     */
    CommonResponse  complete(CompleteBean completeBean);
}
